package com.byesame.demo01.service.impl;

import com.byesame.demo01.entity.ProjectClassEntity;
import com.byesame.demo01.mapper.ProjectClassMapper;
import com.byesame.demo01.service.ProjectClassService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class ProjectClassServiceImpl implements ProjectClassService {

    @Autowired // wired
    private ProjectClassMapper projectClassMapper;


    @Override
    public ProjectClassEntity selectProClassById(Long id) {
        if (id > 0) {
            return projectClassMapper.selectProClassById(id);
        }
        return null;
    }

    @Override
    public List<ProjectClassEntity> selectProClassList(ProjectClassEntity entity) {

        return projectClassMapper.selectProClassList(entity);
    }
}
